using System.ComponentModel.DataAnnotations;

namespace ClassDemo.DTO;

/// <summary>
/// 批量删除请求数据传输对象
/// </summary>
public class BatchDeleteRequest
{
    /// <summary>
    /// 要删除的ID列表
    /// </summary>
    [Required(ErrorMessage = "ID列表不能为空")]
    [MinLength(1, ErrorMessage = "至少需要提供一个ID")]
    public List<int> Ids { get; set; } = new List<int>();
}